﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ElMexicanos.Components.Screens.Game;
using ElMexicanos.Base.Models;

namespace ElMexicanos.Components.Maps
{
    class map : MapScreen
    {
        List<Sprite> spritesList;

        public static void chargementTexture(string texture, string ligne, string colonne){

            int positionX;
            int positionY;


            int IntLigne = Convert.ToInt32(ligne);
            int IntColonne = Convert.ToInt32(colonne);

            positionX = IntColonne * 50; //Posission de la case en pixel
            positionY = IntLigne * 50; 

            Sprite textureSprite = new Sprite(positionX, positionY);


                switch (texture)
                {
                    case "desser1":
                        textureSprite.LoadContent("Textures/Maps/desert_1");
                        break;
                    case "chemin1":
                        textureSprite.LoadContent("Textures/Maps/chemin_1");
                        break;
                    default:
                        Console.WriteLine("Default case");
                        break;
                }
        }

    }
}
